'''
Created on Dec 8, 2015

@author: JimmyMo
'''
import unittest
import ruleprocessor 


class TestRuleProcessor(unittest.TestCase):
    def test_RuleProcessor(self):
        ruleProcessor = ruleprocessor.getRuleProcessor("RegexRuleProcessor", "(.*)\.mkv")
#         ruleprocessor = RuleProcessor("(.*)\.mkv")
        result = ruleProcessor.do_process("哆啦A梦：伴我同行.Stand.By.Me.Doraemon.2014.BluRay.720p.x264.3Audio.AC3-CnSCG.mkv")
        self.assertEqual("哆啦A梦：伴我同行.Stand.By.Me.Doraemon.2014.BluRay.720p.x264.3Audio.AC3-CnSCG", result)

if __name__ == "__main__":
    #import sys;sys.argv = ['', 'Test.testName']
    unittest.main()